package com.zcup.fileupload.mapper;

import com.zcup.fileupload.entity.File;
import com.zcup.fileupload.entity.vo.FileById;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FileMapper {

    //根据用户id查询文件列表
    List<FileById> findById(String id);

    int saveFileInfo(File file);

    //根据文件id查询文件信息
    FileById fileById(String fid);

    int delById(String fid);

    int updateCounts(String fid);
}
